var koa = require("koa");
var handlebars = require("koa-handlebars");

var app =new koa();

app.use(handlebars({
    viewsDir:'./views',
    defaultLayout: "main"
}));

app.use(function *() {
    yield this.render("home", {
        title: "Test Page",
        name: "World"
    });
});

app.listen(4002);